﻿using System;

/*
 * Write a program that reads two positive integer numbers and 
 * prints how many numbers p exist between them such that the 
 * reminder of the division by 5 is 0 (inclusive). 
 * Example: p(17,25) = 2.
 */

class NumbersDivisibleBy5InARange
{
    static void Main(string[] args)
    {
        Console.WriteLine("Enter the first number:");
        uint a = Convert.ToUInt32(Console.ReadLine());
        Console.WriteLine("Enter the second number:");
        uint b = Convert.ToUInt32(Console.ReadLine());
        uint result = (Math.Max(a, b) - Math.Min(a, b)) / 5 + ((a % 5u == 0)|| (b % 5u == 0) ? 1u : 0u);
        Console.WriteLine("There are {0} numbers divisible by 5 witout remainder between {1} and {2}",result,a,b);
    }
}
